package com.rykj.qxj.server.model.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 数据库源
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name="database_source")
public class DatabaseSource {
    @Id
    @GeneratedValue
    private int id;
    @ApiModelProperty(value = "应用Id主键")
    private int appId;
    @ApiModelProperty(value = "数据库类型")
    private String  databaseType;
    @NotNull
    @ApiModelProperty(value = "数据库分类")
    private String  classification;
    @NotNull
    @ApiModelProperty(value = "数据库目录")
    private String  directory;
    @NotNull
    @ApiModelProperty(value = "数据库英文名")
    private String  databaseName;
    @NotNull
    @ApiModelProperty(value = "数据库中文名")
    private String  databaseCNName;
    @NotNull
    @ApiModelProperty(value = "字符编码")
    private String  charCode;
    @NotNull
    @ApiModelProperty(value = "数据库IP")
    private String  databaseIP;
    @NotNull
    @ApiModelProperty(value = "端口")
    private String  port;
    @NotNull
    @ApiModelProperty(value = "用户名")
    private String userName;
    @NotNull
    @ApiModelProperty(value = "密码")
    private String  password;
    @ApiModelProperty(value = "描述")
    private String remark;
    @ApiModelProperty(value = "删除状态,normal:正常;delete:删除")
    private String  status;
    @ApiModelProperty(value = "创建人")
    private String  createdBy;
    @ApiModelProperty(value = "创建时间")
    private Date  createdTime;
    @ApiModelProperty(value = "修改人")
    private String  updatedBy;
    @ApiModelProperty(value = "修改时间")
    private Date updatedTime;

}
